module diansha {
	export class login extends eui.Component implements eui.UIComponent {
		private banzi: eui.Panel;
		private banziout: eui.Panel;
		private zhuce: eui.Button;
		public constructor() {
			super();
		}

		protected partAdded(partName: string, instance: any): void {
			super.partAdded(partName, instance);
		}


		protected childrenCreated(): void {
			super.childrenCreated();
			if (this.banziout.parent) {
				this.removeChild(this.banziout)
			}
			this.addEventListener(egret.Event.ADDED_TO_STAGE, () => {
				this.addChild(this.banzi)
			}, this)
			this.banzi.addEventListener(eui.UIEvent.CLOSING, () => {
				cores.getinstatic().changjing2.to(cores.getinstatic().index);
			}, this)
			this.zhuce.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
				this.addChild(this.banziout);
			}, this)

		}
	}
}